package com.soft.web.mapper;

import com.soft.web.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    List<User> queryUserList(int start, int limit);

    List<User> queryUserLike(int start, int limit, User user);

    int queryUserCount();

    User queryUserById(int id);


    int addUser(User user);

    int updateUser(User user);

    int updatePassword(String id, String password);

    int deleteUserById(String id);
}
